﻿using OccurrencesCore.Model;
using OccurrencesCore.Model.Interface;
using OccurrencesCore.Repository;
using System.Collections.Generic;

namespace OccurrencesCore.Service
{
    public partial class OccurrenceReasonService
    {
        /// <summary>
        /// Get all the reasons by occurrence type
        /// </summary>
        /// <returns>A list of reasons</returns>
        public List<OccurrenceReason> FindByType(int typeId)
        {
            return _Repository.FindByType(typeId);
        }
    }
}
